<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Banner extends MX_Controller 
{
	function __construct()
	{
        parent::__construct();
		$this->load->model('banner_model', 'banner') ;
	}
	
	/*function index()
	{
        $data['title'] = "Đăng nhập website" ;
		$data['list_card']=$this->banner->getProFromCat('product',1,3,0);
		$this->load->view('top', $data) ;
	}*/
	
	/*public function center()
	{
		$this->load->view('center') ;
	}*/
	
	public function top()
	{
		$data['list'] = $this->banner->get_all('banner',1,5,0); 
		$this->load->view('top',$data);
	}
	
	public function right()
	{
		$data['list'] = $this->banner->get_all('banner',2,2,0);
		$this->load->view('right', $data) ;
	}
}
?>